import { createBrowserRouter } from 'react-router-dom'
import React from 'react'

const router =[
 
  {
    path: '/',
    Component:React.lazy(()=> import( '../view/index.js')), //require('../view/index.js'),
  },
  // {
  //   path: '/',
  //   Component: <Navigate to="/index" />
  // },
]

// export default function AppRoute(){
//   // 
//   return  <RouterProvider router={routers} />
// }
export const routers = createBrowserRouter(router)